package cn.bdqn.service.reportForms;


import cn.bdqn.dao.reportForms.StatisMapper;
import cn.bdqn.pojo.reportForms.StatisByDay;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserStatisService {

    @Autowired
    private StatisMapper statisMapper;


    // 问题统计
    public List<StatisByDay> queryStatisByDay(){
        return statisMapper.statisticsByDay();
    }

    public List<StatisByDay> queryStatisByWeek(){
        return statisMapper.statisticsByWeek();
    }

    public List<StatisByDay> queryStatisByMonuth(){
        return statisMapper.statisticsByMonths();
    }



    // 订单统计
    public List<StatisByDay> queryStatisOrderBy(String type){
        return statisMapper.statisticsOrderBy(type);
    }

    // 订单价格统计
    public List<StatisByDay> queryStatisOrderPriceBy(String type){
        return statisMapper.statisticsOrPriceBy(type);
    }



}
